# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=python2-update-checker
_pkgname=update_checker
pkgver=0.16
pkgrel=3
pkgdesc='A python module that will check for package updates.'
url='https://pypi.org/project/update_checker/#files'
arch=('any')
license=('BSD')
depends=('python2' 'python2-requests')
makedepends=('python2-setuptools')
source=("https://files.pythonhosted.org/packages/source/${_pkgname::1}/$_pkgname/$_pkgname-$pkgver.tar.gz")
sha512sums=('307a266dfeb686f5477091834467964d7c43c5c2c4f8b2293734a0aa8c72d7facfec2f8be4c90c76e98995e7a0c46b51bca9bc372892e0420a8e21dfa14dc090')

build() {
  cd "$_pkgname-$pkgver"

  python2 setup.py build
}

package() {
  cd "$_pkgname-$pkgver"

  python2 setup.py install --root="$pkgdir" --prefix=/usr -O1 --skip-build
}

